#include <cstdio>
#include <fstream>
#include <iostream>
#include <string>
using namespace std;

int main () {
	ofstream disco1("disco1.dat", ios::binary);
	ofstream disco2("disco2.dat", ios::binary);
	ofstream disco3("disco3.dat", ios::binary);
	ofstream disco4("disco4.dat", ios::binary);
	ofstream secLibD1("secLibD1.dat", ios::binary);
	ofstream secLibD2("secLibD2.dat", ios::binary);
	ofstream secLibD3("secLibD3.dat", ios::binary);
	ofstream secLibD4("secLibD4.dat", ios::binary);
	char lib = 'L';
	char hd = '0';
	int i;
	cout << "...........CREANDO FICHEROS...........\n";
	for (i=1; i<33554432; i++) {
		disco1.write((char*)&hd,1);
		disco2.write((char*)&hd,1);
		disco3.write((char*)&hd,1);
		disco4.write((char*)&hd,1);
		secLibD1.write((char*)&lib,1);
		secLibD2.write((char*)&lib,1);
		secLibD3.write((char*)&lib,1);
		secLibD4.write((char*)&lib,1);
	}
	cout << "Creación de ficheros terminada.\n";
return 0;}
